BASS_WASAPI_SetVolume

Sets the device volume.

BOOL BASS_WASAPI_SetVolume(
    BOOL linear,
    float volume
);

Parameters
linearUse a linear curve? Otherwise logarithmic.
volumeThe volume level... 0 (silent) to 1 (max) if linear, or else a dB level.

Return value
If successful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_INITBASS_WASAPI_Init has not been successfully called.
BASS_ERROR_NOTAVAILThere is no volume control available.
BASS_ERROR_ILLPARAMvolume is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem!

Remarks
When setting the volume in dB (linear = FALSE), the valid range can be obtained from BASS_WASAPI_GetInfo.

When using multiple devices, the current thread's device setting (as set with BASS_WASAPI_SetDevice) determines which device this function call applies to.

See also
BASS_WASAPI_GetVolume, BASS_WASAPI_SetMute